package com.itheima.reggie;


import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication//主类
@MapperScan("com.itheima.reggie.mapper")//指定mybatis类所在的包
@EnableTransactionManagement//开启事务管理
@Slf4j//日志
@EnableCaching//开启SpringCache注解
public class WebAppApplication {

    public static void main(String[] args) {
        SpringApplication.run(WebAppApplication.class,args);
        log.info("app端项目启动成功");
    }
}
